Skip to content

Conversation

@zah
Copy link
Member

@zah zah commented Jun 29, 2025

Summary

  • preallocate vectors for common collections
  • avoid allocating path strings in event hook
  • enable lto and native cpu flags when building extension

Testing

  • just build-extension
  • just test

https://chatgpt.com/codex/tasks/task_e_6861b6e9993083298a6333b59a89e11b

Use pre-allocated vectors, avoid path string allocations, and enable LTO with native CPU flags for faster builds.
@github-actions
Copy link

Benchmark Report
BenchmarkRuby (no tracing)JSONCAPNPJSON (PureRuby)
heavy_work68ms✓ 575ms 78,110,688B940ms 25,149,319B✓ 35,129ms 211,728,983B

@zah zah merged commit 18c9c7c into main Jun 29, 2025
4 of 5 checks passed
@zah zah deleted the codex/optimize-native-tracer-performance branch June 29, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants